<?php

namespace zhtfrontend\models\datas;

use Yii;

/**
 * This is the model class for table "{{%class_manage_teacher}}".
 *
 * @property integer $class_id
 * @property integer $teacher_id
 * @property string $teacher_name
 */
class ClassManageTeacher extends \zhtfrontend\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%class_manage_teacher}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['class_id', 'teacher_id'], 'integer'],
            [['teacher_name'], 'string', 'max' => 20],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'class_id' => Yii::t('zhtfrontend', '班级id'),
            'teacher_id' => Yii::t('zhtfrontend', '老师id'),
            'teacher_name' => Yii::t('zhtfrontend', '老师'),
        ];
    }
}
